
namespace KinonekoSoftware.Foundation.UI.Controls
{
#if WINDOWS
    using System.Windows;

    public partial class ForestTreeViewBase
    {
        
        public static readonly DependencyProperty BindableSelectedItemProperty = DependencyProperty.Register(
            nameof(BindableSelectedItem),
            typeof(object),
            typeof(ForestTreeViewBase),
            new PropertyMetadata(default(object)));
        
        

        protected override void OnSelectedItemChanged(RoutedPropertyChangedEventArgs<object> e)
        {
            BindableSelectedItem = SelectedValue;
            base.OnSelectedItemChanged(e);
        }


        public object BindableSelectedItem
        {
            get => GetValue(BindableSelectedItemProperty);
            set => SetValue(BindableSelectedItemProperty, value);
        }
    }
#endif
}